package ibm.cognos.imt.template

import groovy.xml.MarkupBuilder

/**
 * Created with IntelliJ IDEA.
 * User: eric
 * Date: 5/9/14
 * Time: 9:07 AM
 * To change this template use File | Settings | File Templates.
 */
class ModelPathTemplate extends AbstractTemplate{
    String modelPath

    ModelPathTemplate(path){
        modelPath = path
    }

    @Override
    def generateTemplateSpec(MarkupBuilder builder) {
        builder.modelPath(modelPath)
    }

    @Override
    def getTemplateNode(map=null) {
        root = new XmlSlurper().parseText(getSpecStr())
        root
    }
}
